package org.siam.impl.data.editors {
	
	import mx.core.IFactory;
	
	import org.siam.core.data.IDataContext;
	import org.siam.core.data.editors.IEditorContext;
	import org.siam.core.data.editors.IEditorsManager;
	import org.siam.impl.data.DataManager;

	public class EditorsManager extends DataManager implements IEditorsManager {
		
		public function EditorsManager() {
		}
		
		public function find(id:String):IEditorContext {
			return super.findContext(id) as IEditorContext;
		}
		
		override protected function createContext(factory:IFactory, metadata:Object):IDataContext {
			return new EditorContext(factory, metadata["dataField"]);
		}
	}
}